package com.ibatis.sqlmap.engine.datasource;

import com.ibatis.common.jdbc.C3P0Configuration;
import javax.sql.DataSource;
import java.util.Map;

public class C3P0DataSourceFactory implements DataSourceFactory {
    public C3P0DataSourceFactory() {
        super();
    }

    private DataSource dataSource;

	public void initialize(Map map) {
        C3P0Configuration c3p0 = new C3P0Configuration(map);
        dataSource = c3p0.getDataSource();
    }

    public DataSource getDataSource() {
        return dataSource;
    }

    public static void main(String[] args) {
//        C3P0DataSourceFactory c3p0datasourcefactory = new C3P0DataSourceFactory();
    }
}
